<!doctype html>
<html>
    <head>
      <meta charset="UTF-8"/>
	    <link rel="stylesheet" type="text/css" href="/webapp/css/easyui.css">
	    <link rel="stylesheet" type="text/css" href="/webapp/css/icon.css">
      <link rel="stylesheet" type="text/css" href="/webapp/css/color.css">
      <link rel="stylesheet" type="text/css" href="/webapp/css/public.css">

	    <script type="text/javascript" src="/webapp/js/lib/jquery.min.js"></script>
	    <script type="text/javascript" src="/webapp/js/lib/jquery.easyui.min.js"></script>
	    <script type="text/javascript" src="/webapp/js/lib/ajaxfileupload.js"></script>
	    <script type="text/javascript" src="/webapp/js/common/config.js"></script>
      <script type="text/javascript" src="/webapp/js/main/main.js"></script>
    </head>
    <body class="easyui-layout">
    	    <div data-options="region:'north',border:false">
               <div class="web-header clearfix">               
                  <div class="user-info fr">
                     <a href="javascript:void(0);" id="username">admin</a>|<a href="javascript:void(0);">修改密码</a>|<a href="javascript:void(0);" class="btn-logout">退出</a>
                  </div>   
                  <a class="logo" href="/">xx科技有限公司数据管理系统</a>
               </div>
        	</div>
        	<div data-options="region:'west',split:true,collapse:true,title:'主菜单'" style="width:200px;">
                     <div id="menu" class="easyui-accordion" data-options="fit:true,border:false,nimate:true,lines:true">
                       
                     </div>
        	</div>
        	<div data-options="region:'south',border:false">
               <div class="web-footer">
                  <h6>Copyright © 2006-2018 MvnRepository. All rights reserved.</h6>
                  <h6>Web site developed by @ocean</h6>
                  <a href="#">Contact Us</a>
               </div>
        	</div>   	
        	<div data-options="region:'center'">
                <div id="tabs" class="easyui-tabs" style="width:100%;height:100%;border:none;">
                  <div title="系统首页" style="width:100%;height:100%;">
                     <iframe name="homePage" scrolling="auto" frameborder="0" src="./index.html" style="width:100%;height:100%;display:block;"></iframe>
                 </div>
              </div>
          </div>
    </body>
    <script type="text/javascript">
        $(function(){
            $(".btn-logout").on("click",function(e){
              $.ajax({
               url:config.url + "/user/logout",
               type:"get",
               xhrFields:{withCredentials:true},
               success:function(data){
                console.log(data);
                location.href = "/webapp/";
               },
               error:function(data){
                console.log(data);
               }
             });
            }); 
            //处理点击事件
            //addTab("渠道管理","../channel/import.html");
            generateMenu();
            //调用子iframe
            //document.querySelector('iframe').onload = function(){
              //homePage.window.setNav("当前位置:>首页");
            //}
 
        })
    </script>
</html>
